package com.zwps.biz.api.model.vo.elements;

import lombok.Data;

import java.util.List;
@Data
public class EmergencyContactResponseVO {
    private String town;
    private String village;
    private String lat;
    private String lnt;
    private String el;
    private List<ContactInfo> contacts;

    @Data
    public static class ContactInfo {
        private String name;
        private String phone;
        private Integer type;
        private String typeDesc;

        public String getTypeDesc() {
            switch (type) {
                case 0: return "主要负责人";
                case 1: return "分管负责人";
                case 2: return "防汛负责人";
                default: return "未知类型";
            }
        }
    }
}
